Integrand size = 24, antiderivative size = 38 \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^2} \, dx=\frac {2 x}{a^2}+\frac {2 i \log (\cos (c+d x))}{a^2 d}-\frac {\tan (c+d x)}{a^2 d} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3568, 45} \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^2} \, dx=-\frac {\tan (c+d x)}{a^2 d}+\frac {2 i \log (\cos (c+d x))}{a^2 d}+\frac {2 x}{a^2} \]
[In]
[Out]
Rule 45
Rule 3568
Rubi steps \begin{align*} \text {integral}& = -\frac {i \text {Subst}\left (\int \frac {a-x}{a+x} \, dx,x,i a \tan (c+d x)\right )}{a^3 d} \\ & = -\frac {i \text {Subst}\left (\int \left (-1+\frac {2 a}{a+x}\right ) \, dx,x,i a \tan (c+d x)\right )}{a^3 d} \\ & = \frac {2 x}{a^2}+\frac {2 i \log (\cos (c+d x))}{a^2 d}-\frac {\tan (c+d x)}{a^2 d} \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.00 \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^2} \, dx=-\frac {2 i \log (i-\tan (c+d x))}{a^2 d}-\frac {\tan (c+d x)}{a^2 d} \]
[In]
[Out]
Time = 0.66 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.79
method | result | size |
derivativedivides | \(\frac {-\tan \left (d x +c \right )-2 i \ln \left (\tan \left (d x +c \right )-i\right )}{d \,a^{2}}\) | \(30\) |
default | \(\frac {-\tan \left (d x +c \right )-2 i \ln \left (\tan \left (d x +c \right )-i\right )}{d \,a^{2}}\) | \(30\) |
risch | \(\frac {4 x}{a^{2}}+\frac {4 c}{a^{2} d}-\frac {2 i}{d \,a^{2} \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}+\frac {2 i \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}{a^{2} d}\) | \(60\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.84 \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^2} \, dx=\frac {2 \, {\left (2 \, d x e^{\left (2 i \, d x + 2 i \, c\right )} + 2 \, d x - {\left (-i \, e^{\left (2 i \, d x + 2 i \, c\right )} - i\right )} \log \left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right ) - i\right )}}{a^{2} d e^{\left (2 i \, d x + 2 i \, c\right )} + a^{2} d} \]
[In]
[Out]
\[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^2} \, dx=- \frac {\int \frac {\sec ^{4}{\left (c + d x \right )}}{\tan ^{2}{\left (c + d x \right )} - 2 i \tan {\left (c + d x \right )} - 1}\, dx}{a^{2}} \]
[In]
[Out]
none
Time = 0.23 (sec) , antiderivative size = 32, normalized size of antiderivative = 0.84 \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^2} \, dx=\frac {-\frac {2 i \, \log \left (i \, \tan \left (d x + c\right ) + 1\right )}{a^{2}} - \frac {\tan \left (d x + c\right )}{a^{2}}}{d} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 100 vs. \(2 (36) = 72\).
Time = 0.47 (sec) , antiderivative size = 100, normalized size of antiderivative = 2.63 \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^2} \, dx=\frac {2 \, {\left (\frac {i \, \log \left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}{a^{2}} - \frac {2 i \, \log \left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - i\right )}{a^{2}} + \frac {i \, \log \left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}{a^{2}} + \frac {-i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + i}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )} a^{2}}\right )}}{d} \]
[In]
[Out]
Time = 3.75 (sec) , antiderivative size = 28, normalized size of antiderivative = 0.74 \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^2} \, dx=-\frac {\mathrm {tan}\left (c+d\,x\right )+\ln \left (\mathrm {tan}\left (c+d\,x\right )-\mathrm {i}\right )\,2{}\mathrm {i}}{a^2\,d} \]
[In]
[Out]